﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Collections;

namespace ECRMS.Common
{
    [DataContract(Name = "Result")]
    public class ServiceResult
    {
        [DataMember(Name = "status")]
        public int Status { get; set; }

        [DataMember(Name = "message")]
        public string Message { get; set; }
    }

    [DataContract(Name = "Result")]
    public class ServiceResult<T> : ServiceResult
    {
        [DataMember(Name = "data")]
        public T Data { get; set; }
    }
}
